package apiroutes

import (
	"dataaysn/internal/service"

	"github.com/gin-gonic/gin"
)

func RegisterHospitalRoutes(r *gin.Engine, hospitalService *service.HospitalService) {
	hospitalGroup := r.Group("/api/hospitals")
	{
		hospitalGroup.POST("", hospitalService.CreateHospital)
		hospitalGroup.GET("", hospitalService.ListHospitals)
		hospitalGroup.GET("/:code", hospitalService.GetHospital)
		hospitalGroup.PUT("/:code", hospitalService.UpdateHospital)
		hospitalGroup.DELETE("/:code", hospitalService.DeleteHospital)
	}
}
